package com.zzx.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (Role)表实体类
 *
 * @author makejava
 * @since 2022-07-31 21:49:43
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sp_role")
public class Role {
    @TableId
    private Integer roleId;
    //角色名称
    private String roleName;
    //权限ids,1,2,5
    private String psIds;
    //控制器-操作,控制器-操作,控制器-操作
    private String psCa;
    
    private String roleDesc;


public static Role isAdmin(Integer id){
    Role role = null;
    if(id==0){
         role = new Role();
        role.setRoleId(0);
    }
    return role;
}
  
}

